package com.qf.boot2203.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
public class DateController {

    @GetMapping("/date")
    public Map<String,Object> getNowTime(){

        Date date = new Date();

        HashMap<String, Object> dateMap = new HashMap<>();

        dateMap.put("date",date);

        return dateMap;
    }
}
